- unless @pages.empty?
  %h2
    = "Found #{pluralize(@pages.length, 'page')} matching the term"
    %span.search_term= "\"#{params[:term]}\""
  %div.pages_results
    - @pages.each do |page|
      %p
        %span.page_search_result_title
          %a{:href => page_url(page), :title => page.title}
            = page.title
        %span.page_search_result_updated_at
          = "last updated on #{page.updated_at.strftime("%B %o, %Y at %I:%M %p")}"
        %br
        %span.page_search_result_content
          = truncate_html(page.text_only_content, {:max_length => 250, :words => true, :ellipsis => "..."})